/**
 *        (c) 2010 SDGroup
 *
 *        http://www.sdgroup.com
 */

package me.cloudcat.develop.entity.configuration;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;
import javax.validation.constraints.NotNull;

import me.cloudcat.develop.entity.BaseEntity;

/**
 * 权限
 * @author ZZWang
 * @Time 2017年1月17日  下午2:55:35
 *
 */
@Entity
@Table(name = "tbl_tenant", uniqueConstraints = { @UniqueConstraint(columnNames = "no") })
//@SequenceGenerator(name="SEQ_STORE", sequenceName="TBL_TENANT_ID_ASQ", allocationSize=1)
public class Tenant extends BaseEntity<Tenant> {

    /**
     * 
     */
    private static final long serialVersionUID = -8086056756295537326L;

    /**
     * 编号
     */
    @NotNull
    @Column(name="no")
    private String number;

    /**
     * 名称
     */
    @NotNull
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * version
     */
    @Version
    private int version;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

}
